package com.base_data_handler.sx.task;

import java.io.File;
import java.sql.SQLException;
import java.util.Calendar;
import java.util.List;
import java.util.logging.Logger;

import org.apache.commons.dbutils.QueryRunner;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.base_data_handler.function.model.ProImg;
import com.base_data_handler.function.weather.RealForcastLifeWarnFromChinaWeather;
import com.base_data_handler.sx.handler.SX_Forcast_Handler;
import com.base_data_handler.sx.model.FocastModel;
import com.base_data_handler.utils.DataSourceUtils;
import com.base_data_handler.utils.HttpRequest;
import com.base_data_handler.utils.ImgScal;
import com.base_data_handler.utils.ftp.FtpConfig;
import com.base_data_handler.utils.ftp.FtpUtil;
/**
 * cimmiss  全国城镇精细化预报产品要素资料 
 * @param urlStr
 * @return
 */
public class SX_Forcast_Task implements Job {

	private static final Logger log = Logger.getLogger(SX_Forcast_Task.class.getName());
	
	@Override
	public void execute(JobExecutionContext context) throws JobExecutionException {
		// 调度任务参数
//		JobDataMap dataMap = context.getJobDetail().getJobDataMap();
//		String xxx = (String) dataMap.get("xxx");
			
		try {
			log.info("全国城镇精细化预报产品要素资料,精细化要素预报数据同步  每1小时执行一次");
			SX_Forcast_Handler.getCimmisSX_forcast();
		} catch (Exception e) {
		   log.info("全国城镇精细化预报产品要素资料" + e.getMessage());
			e.printStackTrace();
		}
		
	}
	
	
}
